package com.kgc.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@ApiModel(value = "优惠券详情")
public class DiscountTrick implements Serializable {
    private static final long serialVersionUID = -1690346990760512929L;
    @ApiModelProperty(value = "优惠券id")
    private Integer id;
    @ApiModelProperty(value = "优惠券的类别")
    private Integer type;
    @ApiModelProperty(value = "-1即不归类别，类别使用才有值")
    private Integer goodsMenu;
    @ApiModelProperty(value = "指定是哪个商品编号使用")
    private String goodsId;
    @ApiModelProperty(value = "优惠金额从分开始计算")
    private Integer money;
    @ApiModelProperty(value = "优惠券使用开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @ApiModelProperty(value = "优惠券使用结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    @ApiModelProperty(value = "库存数量")
    private Integer num;
    @ApiModelProperty(value = "要花费的消费积分")
    private Integer robIntegral;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getGoodsMenu() {
        return goodsMenu;
    }

    public void setGoodsMenu(Integer goodsMenu) {
        this.goodsMenu = goodsMenu;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId == null ? null : goodsId.trim();
    }

    public Integer getMoney() {
        return money;
    }

    public void setMoney(Integer money) {
        this.money = money;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getRobIntegral() {
        return robIntegral;
    }

    public void setRobIntegral(Integer robIntegral) {
        this.robIntegral = robIntegral;
    }
}